﻿namespace Swimj.DataCore;

public interface IPagingHelper
{
    /// <summary>
    ///     Splits the given <paramref name="sql" /> into <paramref name="parts" />;
    /// </summary>
    /// <param name="sql">The SQL to split.</param>
    /// <param name="parts">The SQL parts.</param>
    /// <returns><c>True</c> if the SQL could be split; else, <c>False</c>.</returns>
    bool SplitSql(string sql, out SqlParts parts);
}